package com.run.runbbs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.run.runbbs.dao.IndexValueMapper;
import com.run.runbbs.entity.IndexValue;
import com.run.runbbs.service.IndexValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class IndexValueServiceImpl extends ServiceImpl<IndexValueMapper, IndexValue> implements IndexValueService {
    @Autowired
    IndexValueMapper indexValueMapper;
    @Override
    public IndexValue getByType() {
        return null;
    }

    @Override
    public List<IndexValue> getChartData(Integer userId, String indexType) {
        List<IndexValue> list=indexValueMapper.getChartData(userId,indexType);
        return list;
    }

    @Override
    public List<IndexValue> getIndexValue(Integer userId, String indexType, int offset, int limit) {
        List<IndexValue> list=indexValueMapper.getIndexValue(userId,indexType,offset,limit);
        return list;
    }

    @Override
    public List<IndexValue> getAbnormalTemperature() {
        List<IndexValue> list=indexValueMapper.getAbnormalTemperature();
        return list;
    }
}
